package com.baidu.day5.Goods;

import java.util.ArrayList;
//一般来说这个最纯粹 用来存放 商品的属性 构造方法 封装(set get)



public class Goods {
    static ArrayList<Goods> goodsList = new ArrayList<>();
    private Integer num;
    private String name;
    private Double price;
    private Integer stock;

    public Goods() {
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Goods(Integer num, String name, Double price, Integer stock) {
        this.num = num;
        this.name = name;
        this.price = price;
        this.stock = stock;
    }


}
